
#工具函数
import os
import time 



#定义一个坐标类
class pos():
	def __init__(self):
		self.x =  0
		self.y =  0

class timer():
	def __init__(self):
		self.begin_time = 0

	def begin( self ):
		self.begin_time = time.perf_counter()

	def end( self , str ):
		print(str , end = "")
		print("耗时:",time.perf_counter() - self.begin_time)
		# self.begin_time = 0





#坐标函数
# def getPos(x,y):

# 	return 



#文件操作
def log_write(*args):
	# string =  "--".join(args) 
	txtfile = open('test.py','w')

	txtfile.write(agrs)
	for key in range(len(args)):
		txtfile.write(agrs[key])

	txtfile.close()


##重写log 函数，操作文件， 计算耗时等	
#元组，list  , 可进行文件操作，写入log
def nsLog(*args): 
	print(args)




#工具类
# class utl : 
# 	def  __init__(self):

# 	def nsLog(self,str):
# 		print(str)
		
		



